<?php
//echo '[ true, false, "\u20AC" ]';
//exit();
mysql_connect('127.0.0.1', 'root', 'root');
mysql_select_db('db');
mysql_query("SET NAMES utf8");

$sql = "SELECT * FROM supplier LIMIT 5000000";
$query = mysql_unbuffered_query($sql);

$i=0;
echo "[";
while($row = mysql_fetch_assoc($query)) {
	echo json_encode($row);
	$i++;
	if($i==5000000) break;
	echo ",";
}
echo "]";


